package com.tyk.bookstore.back.payment.model.enume;


import com.fasterxml.jackson.annotation.JsonValue;
import com.tyk.bookstore.back.common.core.model.type.BaseEnum;

/**
 * @author tyk
 * @description AmountLogType
 */
public enum AmountLogType implements BaseEnum {

    RECHARGE(0),
    ORDER_PAYMENT(1);

    @JsonValue
    private final Integer code;

    AmountLogType(Integer code) {
        this.code = code;
    }

    @Override
    public Integer value() {
        return code;
    }
}
